<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/member.css" />
<script type="text/javascript" src="../js/member.js"></script>
<title>회원 입력 결과(input_result.jsp)</title>
</head>
<body>
<h1>회원 입력 결과</h1>
<%
	int size=1024*1024*10;
	String saveDir = "D:/jhta/workspace_java/webtest/WebContent/src/memberImages";
	String oriFile = "";
	String sysFile = "";
	
	MultipartRequest multi = null;
	out.print("1번");
	try{
		multi = new MultipartRequest(request, saveDir, size, "utf-8", new DefaultFileRenamePolicy());	
		out.print("아이디 : " + multi.getParameter("mid"));
		out.print("성명 : " + multi.getParameter("irum"));
		
		Enumeration files = multi.getFileNames();
		
		String tempFile = (String)files.nextElement();
		out.print("안돼");
		oriFile = multi.getOriginalFileName(tempFile);
		sysFile = multi.getFilesystemName(tempFile);
		out.print("2번");
		
		out.print("원본 파일명 : " + oriFile);
		out.print("저장 파일명 : " + sysFile);
		
	}catch(Exception e){
		
	}
%>
<input type="button" value="회원 목록으로" id= "btnList"/>
<script type="text/javascript">inputInit();</script>
</body>
</html>